import sys,xmlrpclib,os
sys.path.append('lib')
from SecureXMLRPCClient import SecureXMLRPCClient

try:
    s = SecureXMLRPCClient('localhost',3170,'certs/client_key')
except:
    print('E: failed to setup the client.')
    sys.exit(1)


try:
    result = s.execf('Sample2_main')('testing, one two')
    print('%s' % (result))
except:
    print("couldn't execute method! %s" % ([0]))

sys.exit(0)
